// api.js

import request from '../httpRequest/request';

// 获取wallpaper列表
export const WallpaperList = async({ pageNum, pageSize}) => {
  return request.get('/wallpaper/list', { params: { pageNum, pageSize } });
};

// 删除wallpaper
export const WallpaperDelete =async (id) => {
  return request.delete(`/wallpaper/delete/${id}`);
};

// 更新wallpaper
export const WallpaperUpdate = (id,data) => {
  return request.put(`/wallpaper/update/${id}`,data);
};

// 添加wallpaper
export const WallpaperAdd = (group_info) => {
  return request.post('/wallpaper/add', group_info);
};



